import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { MarketSalesmanRoutingModule } from './market-salesman-routing.module';
import { MarketSalesmanListComponent } from './list/list.component';
import { MarketSalesmanEditComponent } from './edit/edit.component';
import { DistrictComponent } from './district/district.component';
import { DistrictEditComponent } from './district-edit/district-edit.component';
import { SalesmanTypeComponent } from './salesman-type/salesman-type.component';
import { SalesmanTypeEditComponent } from './salesman-type-edit/salesman-type-edit.component';
import { SalesmanRoleSettingService } from '@core/routes-services/salesman-role-setting.service';
import { MarketSalesmanRoleSettingComponent } from './role-setting/role-setting.component';
import { SalesmanDetailComponent } from './salesman-detail/salesman-detail.component';
import { SalesmanTeamComponent } from './salesman-team/salesman-team.component';
import { SalesmanFormComponent } from './salesman-form/salesman-form.component';
import { RoleChangeRecordComponent } from './role-change-record/role-change-record.component';
import { MarketSalesmanRoleChangeService } from '@core/routes-services/market-salesman-role-change.service';

const COMPONENTS = [
  MarketSalesmanListComponent,
  DistrictComponent,
  SalesmanTypeComponent,
  RoleChangeRecordComponent];
const COMPONENTS_NOROUNT = [
  MarketSalesmanEditComponent,
  DistrictEditComponent,
  MarketSalesmanRoleSettingComponent,
  SalesmanTypeEditComponent,
  SalesmanTeamComponent,
  SalesmanDetailComponent,
  SalesmanFormComponent];

@NgModule({
  imports: [
    SharedModule,
    MarketSalesmanRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT,
  providers: [
    SalesmanRoleSettingService,
    MarketSalesmanRoleChangeService
  ]
})
export class MarketSalesmanModule { }
